package com.ljf.authority.enums;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * API列表定义  authority_base_api_tabulation  生成模板  枚举
 *
 * @author LJF
 * @since 2025-06-21
 */
@Getter
@AllArgsConstructor
public enum AuthorityBaseApiTabulationTemplateEnum {

    ADD(1, "%s", 1),
    DELETE(2, "%s/{id}", 2),
    DELETE_BATCH(3, "%s/batch", 2),
    EDIT(4, "%s", 3),
    QUERY(5, "%s", 4),
    QUERY_LIST(6, "%s/list", 4),
    QUERY_BY_ID(7, "%s/{id}", 4),
    QUERY_ONE(8, "%s/one", 4);

    @JsonProperty("index")
    @ApiModelProperty(value = "索引")
    private final Integer index;

    @JsonProperty("template")
    @ApiModelProperty(value = "模板")
    private final String template;

    @JsonProperty("method")
    @ApiModelProperty(value = "请求方法")
    private final Integer method;

}
